const fs = require('fs');

var str = '';

for(var i=0;i<500;i++){
  str += '哈哈哈哈哈哈哈哈，你好呀' + i +'\n';
}

var writeStream = fs.createWriteStream('./data/outinput');

writeStream.write(str);

writeStream.end();

writeStream.on('finish',()=>{
  console.log('写入完成');
})